package com.cskaoyan.weixin.service;

import com.cskaoyan.bean.Region;
import com.cskaoyan.mapper.RegionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxRegionServiceImpl implements WxRegionService {

    @Autowired
    RegionMapper regionMapper;

    @Override
    public List<Region> list(Integer pid) {
        List<Region> regionList = regionMapper.getRegionByPid2(pid);
        return regionList;
    }
}
